package com.yrh.bean;


public class TCart {

  private int cartId;
  private int productId;
  private int productNum;
  private int userId;
  /*商品信息*/
  private String productName;
  private String productPic;
  private double productPrice;
  public TCart() {
  }

  public TCart(int cartId, int productId, int productNum, int userId, String productName, String productPic, double productPrice) {
    this.cartId = cartId;
    this.productId = productId;
    this.productNum = productNum;
    this.userId = userId;
    this.productName = productName;
    this.productPic = productPic;
    this.productPrice = productPrice;
  }

  public int getCartId() {
    return cartId;
  }

  public void setCartId(int cartId) {
    this.cartId = cartId;
  }

  public int getProductId() {
    return productId;
  }

  public void setProductId(int productId) {
    this.productId = productId;
  }

  public int getProductNum() {
    return productNum;
  }

  public void setProductNum(int productNum) {
    this.productNum = productNum;
  }

  public int getUserId() {
    return userId;
  }

  public void setUserId(int userId) {
    this.userId = userId;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }

  public String getProductPic() {
    return productPic;
  }

  public void setProductPic(String productPic) {
    this.productPic = productPic;
  }

  public double getProductPrice() {
    return productPrice;
  }

  public void setProductPrice(double productPrice) {
    this.productPrice = productPrice;
  }

  @Override
  public String toString() {
    return "TCart{" +
            "cartId=" + cartId +
            ", productId=" + productId +
            ", productNum=" + productNum +
            ", userId=" + userId +
            ", productName='" + productName + '\'' +
            ", productPic='" + productPic + '\'' +
            ", productPrice=" + productPrice +
            '}';
  }
}
